<?php
/*
	Copyright 2006, 2007, 2008, 2009, 2010 Bastiaan Grutters
    
    This file is part of Ages of Strife website.

    Ages of Strife website is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Ages of Strife website is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Ages of Strife website.  If not, see <http://www.gnu.org/licenses/>.
 */
session_start();
if( isset( $_SESSION[ 'user_id' ] ) ) {
	include( "../global/initialize.php" );
	$logged_out = false;
}
else {
	$logged_out = true;
}
?>
<html>
	<head>
		<title>Ages of Strife: Thank you for buying premium turns</title>
		<link rel="stylesheet" href="agesofstrife.css" />
		<script language="JavaScript" type="text/javascript" src="global.js"></script>
	</head>
	<body>
		<div id="root_container">
<?php
include( "ads.php" );
?>
			<div id="container">
				<div id="main-content">
					<h2>Ages of Strife: Thank you for buying premium turns</h2><br />
					<br />
<?php
if( $logged_out ) {
?>
					<div class="blok">
						<strong>Your purchase has been completed</strong><br />
						A receipt for your purchase has been e-mailed to you.<br />
						<br />
						If you used a PayPal account for your purchase you may log in at <a href="http://www.paypal.com" target="_blank">http://www.paypal.com</a> to view details of this transaction.<br />
						<br />
						Your Ages of Strife login expired or you logged out during the transaction, this does not affect the transaction.<br />
						To log in again click <a href="../index.php">here</a>.
					</div>
<?php
}
else {
?>
					<div class="blok">
						<strong>Your purchase has been completed</strong><br />
						A receipt for your purchase has been e-mailed to you.<br />
						<br />
						If you used a PayPal account for your purchase you may log in at <a href="http://www.paypal.com" target="_blank">http://www.paypal.com</a> to view details of this transaction.<br />
						<br />
						Note: It can take a couple of seconds before the purchased premium turns have been added to your or the beneficiaries Ages of Strife account, an ingame news item will be created showing the details (if you are signed up as a ruler).<br />
						<br />
<?php
	if( isset( $_SESSION[ 'ruler_id' ] ) ) {
?>
						To go back to the game click <a href="../overview/overview.php">here</a>.
<?php
	}
	else {
?>
						To sign up a ruler click <a href="../global/sign_up.php">here</a>.
<?php
	}
?>
					</div>
<?php
}
?>
				</div>
			</div>
		</div>
	</body>
</html>
